import { ref } from "vue"
export const opencalendar=()=>{
this.$refs.calendar.open()
}

export const getHomeBannerAPI = () => {

    uni.request({
  url: 'http://127.0.0.1:5000/advertising/',
  data: {},
  header: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
    'X-Requested-With': 'XMLHttpRequest'
  },
  method: 'GET',
  sslVerify: true,
  success: ({ data, statusCode, header }) => {
 
    return data
    
  },
  fail: (error) => {
    return 'error'
  }
})
  }